// Take weights and merge to outomes
	use "$dir/data/interim/fixed_demo_group_2000.dta", clear

	merge 1:m czone group using "$dir/data/interim/outcome_vars_acs_group.dta", update	
	
	*note there are about 700 cells that don't show up in the 2000 weight data -> within that czone there were no people of that type in 2000
	replace emp_share_2000 = 0 if _merge == 2
	
	drop if group == .
drop if czone ==. 

tab _merge

drop _merge

 
rename cz_* *
rename czone_* *
rename * d*

rename dczone czone
rename dgroup group
rename dyear year 
rename demp_share_2000 emp_share_2000

collapse (sum) d* [pweight = emp_share_2000], by(czone year)



sort year czone


drop if year ==. 

save "$dir/data/interim/demoadj_outcomes.dta", replace





